Skip to content

Conversation

@flobernd
Copy link
Member

@flobernd flobernd commented Jan 31, 2025

The DefaultRequestResponseSerializer implementation in the Elasticsearch client (based on SystemTextJsonSerializer) overrides the Deserialize/Serialize methods to drive special serialization, if the type implements IStreamSerializable. This is done to support e.g. NDJSON request/response bodies.

Fast-path (de-)serialization currently incorrectly bypasses this special handling.

This PR provides a way to selectively disable the fast-path (de-)serialization for specific types.

@flobernd flobernd added enhancement New feature or request v0.5.8 labels Jan 31, 2025
@flobernd flobernd merged commit 36f1d47 into main Feb 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request v0.5.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants